{% import '@SyliusAdmin/shared/helper/dropdown.html.twig' as dropdown %}

{{ dropdown.list(
    {
        direction: 'down-end',
        button: { text: 'sylius.ui.create'|trans, icon: 'tabler:plus' }
    },
    sylius_admin_get_payment_gateways()|map((gatewayName, gatewayServiceId) => {
        title: gatewayName|trans,
        url: path('sylius_admin_payment_method_create', { 'factory': gatewayServiceId }),
    })
) }}
